package com.jungle.mvvm.sample.ui.launch;

import android.app.Application;
import android.os.Handler;
import android.support.annotation.NonNull;

import com.jungle.mvvm.base.BaseViewModel;
import com.jungle.mvvm.sample.ui.main.MainActivity;


/**
 * @ClassName LaunchViewModel
 * @Description 启动页ViewModel
 * @Author Daniel
 * @Version V1.0.0
 */
public class LaunchViewModel extends BaseViewModel {
    public String mUrl = "https://www.wanandroid.com/blogimgs/50c115c2-cf6c-4802-aa7b-a4334de444cd.png";

    public LaunchViewModel(@NonNull Application application) {
        super(application);
        init();
    }

    public void init() {
        Handler handler = new Handler();
        handler.postDelayed(() -> {
            startActivity(MainActivity.class);
            finish();
        }, 3000);
    }
}
